/*     */ package com.qmsk.business.member.custSMS.bean;
/*     */ 
/*     */ import com.utils.basic.CCharComm;
/*     */ import com.utils.basic.CDateTimeComm;
/*     */ import java.util.Date;
/*     */ 
/*     */ public class CustMessage
/*     */ {
/*     */   public static final int SMS_STATE_SUCCESS = 0;
/*     */   public static final int SMS_STATE_INITIAL = -1;
/*     */   public static final int SMS_STATE_NO_SEND = -2;
/*     */   public static final int SMS_STATE_FAILURE = -3;
/*     */   public static final String MSG_STATE_INITIAL = "初始化";
/*     */   public static final String MSG_STATE_NO_SEND = "无需发送";
/*     */   public static final String MSG_STATE_SUCCESS = "发送成功";
/*     */   private Long shopId;
/*     */   private Object custId;
/*     */   private String custName;
/*     */   private Object bussId;
/*     */   private Integer intAmt;
/*     */   private Double deposit;
/*     */   private Double cashConp;
/*     */   private Double dpsitConp;
/*     */   private Double cash;
/*     */   private Integer stId;
/*     */   private Date crTime;
/*     */   private Integer kIntAmt;
/*     */   private Double kDeposit;
/*     */   private Double kCashConp;
/*     */   private Double kDpsitConp;
/*     */   private String mp;
/*     */   private String smsContext;
/*     */   private Integer state;
/*     */   private String msg;
/*     */   private Boolean isTran;
/*     */   private Date mainTime;
/*     */   private Double billAmt;
/*     */   private Integer msState;
/*     */ 
/*     */   public Integer getMsState()
/*     */   {
/*  46 */     return this.msState;
/*     */   }
/*     */ 
/*     */   public void setMsState(Integer msState) {
/*  50 */     this.msState = msState;
/*     */   }
/*     */ 
/*     */   public Double getBillAmt() {
/*  54 */     return this.billAmt;
/*     */   }
/*     */ 
/*     */   public void setBillAmt(Double billAmt) {
/*  58 */     this.billAmt = billAmt;
/*     */   }
/*     */ 
/*     */   public Boolean getIsTran() {
/*  62 */     return this.isTran;
/*     */   }
/*     */ 
/*     */   public void setIsTran(Boolean isTran) {
/*  66 */     this.isTran = isTran;
/*     */   }
/*     */ 
/*     */   public Date getMainTime() {
/*  70 */     return this.mainTime;
/*     */   }
/*     */ 
/*     */   public void setMainTime(Date mainTime) {
/*  74 */     this.mainTime = mainTime;
/*     */   }
/*     */ 
/*     */   public String getMsg() {
/*  78 */     return this.msg;
/*     */   }
/*     */ 
/*     */   public void setMsg(String msg) {
/*  82 */     this.msg = CCharComm.getLimitText(msg, 50);
/*     */   }
/*     */ 
/*     */   public Integer getState() {
/*  86 */     return this.state;
/*     */   }
/*     */ 
/*     */   public void setState(Integer state) {
/*  90 */     this.state = state;
/*     */   }
/*     */ 
/*     */   public String getSmsContext() {
/*  94 */     return this.smsContext;
/*     */   }
/*     */ 
/*     */   public void setSmsContext(String smsContext) {
/*  98 */     this.smsContext = smsContext;
/*     */   }
/*     */ 
/*     */   public String getMp() {
/* 102 */     return this.mp;
/*     */   }
/*     */ 
/*     */   public void setMp(String mp) {
/* 106 */     this.mp = mp;
/*     */   }
/*     */ 
/*     */   public Integer getkIntAmt() {
/* 110 */     return this.kIntAmt;
/*     */   }
/*     */ 
/*     */   public void setkIntAmt(Integer kIntAmt) {
/* 114 */     this.kIntAmt = kIntAmt;
/*     */   }
/*     */ 
/*     */   public Double getkDeposit() {
/* 118 */     return this.kDeposit;
/*     */   }
/*     */ 
/*     */   public void setkDeposit(Double kDeposit) {
/* 122 */     this.kDeposit = kDeposit;
/*     */   }
/*     */ 
/*     */   public Double getkCashConp() {
/* 126 */     return this.kCashConp;
/*     */   }
/*     */ 
/*     */   public void setkCashConp(Double kCashConp) {
/* 130 */     this.kCashConp = kCashConp;
/*     */   }
/*     */ 
/*     */   public Double getkDpsitConp() {
/* 134 */     return this.kDpsitConp;
/*     */   }
/*     */ 
/*     */   public void setkDpsitConp(Double kDpsitConp) {
/* 138 */     this.kDpsitConp = kDpsitConp;
/*     */   }
/*     */ 
/*     */   public Date getCrTime() {
/* 142 */     return this.crTime;
/*     */   }
/*     */ 
/*     */   public void setCrTime(Date crTime) {
/* 146 */     this.crTime = crTime;
/*     */   }
/*     */ 
/*     */   public Integer getStId() {
/* 150 */     return this.stId;
/*     */   }
/*     */ 
/*     */   public void setStId(Integer stId) {
/* 154 */     this.stId = stId;
/*     */   }
/*     */ 
/*     */   public Long getShopId() {
/* 158 */     return this.shopId;
/*     */   }
/*     */ 
/*     */   public void setShopId(Long shopId) {
/* 162 */     this.shopId = shopId;
/*     */   }
/*     */ 
/*     */   public Object getCustId() {
/* 166 */     return this.custId;
/*     */   }
/*     */ 
/*     */   public void setCustId(Object custId) {
/* 170 */     this.custId = custId;
/*     */   }
/*     */ 
/*     */   public String getCustName() {
/* 174 */     return this.custName;
/*     */   }
/*     */ 
/*     */   public void setCustName(String custName) {
/* 178 */     this.custName = custName;
/*     */   }
/*     */ 
/*     */   public Object getBussId() {
/* 182 */     return this.bussId;
/*     */   }
/*     */ 
/*     */   public void setBussId(Object bussId) {
/* 186 */     this.bussId = bussId;
/*     */   }
/*     */ 
/*     */   public Integer getIntAmt() {
/* 190 */     return this.intAmt;
/*     */   }
/*     */ 
/*     */   public void setIntAmt(Integer intAmt) {
/* 194 */     this.intAmt = intAmt;
/*     */   }
/*     */ 
/*     */   public Double getDeposit() {
/* 198 */     return this.deposit;
/*     */   }
/*     */ 
/*     */   public void setDeposit(Double deposit) {
/* 202 */     this.deposit = deposit;
/*     */   }
/*     */ 
/*     */   public Double getCashConp() {
/* 206 */     return this.cashConp;
/*     */   }
/*     */ 
/*     */   public void setCashConp(Double cashConp) {
/* 210 */     this.cashConp = cashConp;
/*     */   }
/*     */ 
/*     */   public Double getDpsitConp() {
/* 214 */     return this.dpsitConp;
/*     */   }
/*     */ 
/*     */   public void setDpsitConp(Double dpsitConp) {
/* 218 */     this.dpsitConp = dpsitConp;
/*     */   }
/*     */ 
/*     */   public Double getCash() {
/* 222 */     return this.cash;
/*     */   }
/*     */ 
/*     */   public void setCash(Double cash) {
/* 226 */     this.cash = cash;
/*     */   }
/*     */ 
/*     */   private static String getSms(String stName, CustMessage cm) {
/* 230 */     StringBuffer sms = new StringBuffer();
/* 231 */     sms = sms.append("尊敬的客户:" + cm.getCustName() + ",您在" + 
/* 232 */       CDateTimeComm.dateToyyyyMMddHHmmss(cm.getCrTime()) + "《" + 
/* 233 */       stName + "》消费金额" + cm.getBillAmt() + "元");
/* 234 */     if ((cm.getIsTran() != null) && (cm.getIsTran().booleanValue())) {
/* 235 */       sms.append(",您的下次保养时间是:" + 
/* 236 */         CDateTimeComm.dateToyyyyMMddHHmmss(cm.getMainTime()));
/*     */     }
/* 238 */     sms.append("。您的账户余额:");
/* 239 */     sms.append(getStringBuffBlan(cm));
/* 240 */     return sms.toString();
/*     */   }
/*     */ 
/*     */   public static String getSmsHead(CustMessage cm) {
/* 244 */     String sms = "";
/* 245 */     if (cm != null)
/* 246 */       switch (cm.getStId().intValue()) { case 1:
/* 248 */         sms = getSms("会员会费", cm);
/* 249 */         break;
/*     */       case 4:
/* 251 */         sms = getSms("礼品兑换", cm);
/* 252 */         break;
/*     */       case 5:
/* 254 */         sms = getSms("车辆维修", cm);
/* 255 */         break;
/*     */       case 9:
/* 257 */         sms = getSms("会员服务", cm);
/* 258 */         break;
/*     */       case 19:
/* 260 */         sms = getSms("配件销售", cm);
/* 261 */         break;
/*     */       case 20:
/* 263 */         sms = getSms("精品销售", cm);
/* 264 */         break;
/*     */       case 21:
/* 266 */         sms = getSms("保费收入", cm);
/* 267 */         break;
/*     */       case 22:
/* 269 */         sms = getSms("保险事故车维修", cm);
/* 270 */         break;
/*     */       case 23:
/* 272 */         sms = getSms("索赔业务", cm);
/* 273 */         break;
/*     */       case 25:
/* 275 */         sms = getSms("预存款", cm);
/* 276 */         break;
/*     */       case 26:
/* 278 */         sms = getSms("整车销售", cm);
/* 279 */         break;
/*     */       case 27:
/* 281 */         sms = getSms("车辆验车", cm);
/* 282 */         break;
/*     */       case 28:
/* 284 */         sms = getSms("车务救援", cm);
/* 285 */         break;
/*     */       case 29:
/* 287 */         sms = getSms("其他收入", cm);
/* 288 */         break;
/*     */       case 31:
/* 290 */         sms = getSms("支出", cm);
/*     */       case 2:
/*     */       case 3:
/*     */       case 6:
/*     */       case 7:
/*     */       case 8:
/*     */       case 10:
/*     */       case 11:
/*     */       case 12:
/*     */       case 13:
/*     */       case 14:
/*     */       case 15:
/*     */       case 16:
/*     */       case 17:
/*     */       case 18:
/*     */       case 24:
/*     */       case 30: }  return sms;
/*     */   }
/*     */ 
/*     */   private static Object getStringBuffBlan(CustMessage cm) {
/* 300 */     StringBuffer sms = new StringBuffer();
/* 301 */     if (cm != null) {
/* 302 */       if ((cm.getkDeposit() != null) && (cm.getkDeposit().doubleValue() != 0.0D)) {
/* 303 */         sms.append("预存" + cm.getkDeposit() + "元,");
/*     */       }
/* 305 */       if ((cm.getkIntAmt() != null) && (cm.getkIntAmt().intValue() != 0)) {
/* 306 */         sms.append("积分" + cm.getkIntAmt() + ",");
/*     */       }
/* 308 */       if ((cm.getkCashConp() != null) && (cm.getkCashConp().doubleValue() != 0.0D)) {
/* 309 */         sms.append("代金券" + cm.getkCashConp() + ",");
/*     */       }
/* 311 */       if ((cm.getkDpsitConp() != null) && (cm.getkDpsitConp().doubleValue() != 0.0D)) {
/* 312 */         sms.append("优惠券" + cm.getkDpsitConp() + ",");
/*     */       }
/*     */     }
/* 315 */     if (sms.length() > 1) {
/* 316 */       return sms.substring(0, sms.length() - 1) + "。";
/*     */     }
/* 318 */     return "";
/*     */   }
/*     */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.member.custSMS.bean.CustMessage
 * JD-Core Version:    0.5.3
 */